﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;

namespace libAddressBook.FORMS
{
    public partial class frmAddressBook : Telerik.WinControls.UI.RadForm
    {
        public frmAddressBook()
        {
            InitializeComponent();
        }

        private void radLabel30_Click(object sender, EventArgs e)
        {

        }

        private void cbbBranch_Click(object sender, EventArgs e)
        {
            frmAddressBookBranch frmBranch = new frmAddressBookBranch();
            frmBranch.ShowDialog(this);
        }

        private void pvAddressBook_SelectedPageChanged(object sender, EventArgs e)
        {

        }

        private void btnUpdateAddress_Click(object sender, EventArgs e)
        {
            frmManageCompanyInfo frmAddressBook = new frmManageCompanyInfo();
            Point p = gbCredentials.PointToScreen(btnUpdateAddress.Location);
            frmAddressBook.set_NewLocation(p.X, p.Y + btnUpdateAddress.Height);
            frmAddressBook.ShowDialog();
        }

        private void radPageViewPage2_Paint(object sender, PaintEventArgs e)
        {

        }

        private void frmAddressBook_Load(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.None;
            this.ControlBox = false;
            this.MinimizeBox = false;
            this.MaximizeBox = false;
        }

        private void cbbOperational_Click(object sender, EventArgs e)
        {
            frmOperationalSettings x = new frmOperationalSettings();
            x.StartPosition = FormStartPosition.CenterScreen;
            x.ShowDialog();
        }

       
    }
}
